package com.sjb.mianshiya.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sjb.mianshiya.model.domain.Question;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sjb.mianshiya.model.request.question.QuestionQueryRequest;
import com.sjb.mianshiya.model.vo.QuestionVO;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
* @author dell
* @description 针对表【question(题目)】的数据库操作Service
* @createDate 2024-09-17 15:40:16
*/
public interface QuestionService extends IService<Question> {

    void validQuestion(Question question, boolean b);


    QuestionVO getQuestionVO(Question question, HttpServletRequest request);

    Wrapper<Question> getQueryWrapper(QuestionQueryRequest questionQueryRequest);

    Page<QuestionVO> getQuestionVOPage(Page<Question> questionPage, HttpServletRequest request);

    /**
     * 分页获取题目列表
     * @param questionQueryRequest
     * @return
     */
    Page<Question> listQuestionByPage(QuestionQueryRequest questionQueryRequest);

    /**
     * 批量删除题目信息
     * @param questionIds
     */
    void deleteBatchQuestion(List<Long> questionIds);

}
